import {Component} from '@angular/core';
import {GnDatetimeUtils, GnMessageService, GnTable} from "geminis-ng";
import {GnTableColumn} from "geminis-ng/data/table.component";
import {HttpClient} from "@angular/common/http";
import {WorkFormComponent} from "./workForm/workForm.component";

@Component({
  selector: 'gn-workflow-user-work-do',
  templateUrl: './work2do.component.html'
})
export class Work2doComponent extends GnTable {

  columns: GnTableColumn[] = [
    {label: '名称', field: 'name'},
    {label: '处理人', field: 'assignee'},
    {label: '开始时间', field: 'createTime', formatter: (row: any) => GnDatetimeUtils.format(row.createTime, 'yyyy-MM-dd HH:mm:ss')}
  ];

  typeTaskDetail = WorkFormComponent;

  constructor(private httpClient: HttpClient,
              private messageService: GnMessageService) {
    super();
  }

}

